package com.ruoyi.system.api;

import com.ruoyi.common.core.constant.SecurityConstants;
import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.system.api.factory.RemoteClassaiFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestParam;


/**
 * stuclient服务
 *
 * @author zsp
 */
@FeignClient(contextId = "remoteClassaiService", value = ServiceNameConstants.CLASSAI_SERVICE, fallbackFactory = RemoteClassaiFallbackFactory.class)
public interface RemoteClassaiService {

    /**
     * 举手
     *
     * @param studenId 学生ID
     * @param teacherId 老师ID
     * @return 结果
     */
    @GetMapping("/student/getStudentHand")
    public AjaxResult getStudentHand(@RequestParam("studenId") String studenId,@RequestParam("teacherId") String teacherId,@RequestHeader(SecurityConstants.FROM_SOURCE) String source);

    /**
     * 查询学校信息
     * @param schoolId 学生ID
     * @return 结果
     */
    @GetMapping("/school/getSchoolInfo")
    public AjaxResult getSchoolInfo(@RequestParam("schoolId") String schoolId,@RequestHeader(SecurityConstants.FROM_SOURCE) String source);

    /**
     * 添加课后作业提醒
     * @return 结果
     */
    @GetMapping("/trainingMessage/addHomeWorkMeaage")
    public AjaxResult addHomeWorkMeaage(@RequestHeader(SecurityConstants.FROM_SOURCE) String source);


}
